package model

type UserRecordCreateRequest struct {
	Id            int64   `json:"id"`
	UserId        string  `json:"user_id"`
	CustomData    string  `json:"custom_data"`
	UnlockNum     int     `json:"unlock_num"`
	Supervisor    int     `json:"supervisor"`
	NickName      string  `json:"nick_name"`
	Phone         string  `json:"phone"`
	UserMoney     float64 `json:"user_money"`
	WithdrawMoney float64 `json:"withdraw_money"`
	CreatedAt     int64   `json:"created_at"`
	UpdatedAt     int64   `json:"updated_at"`
}
type UserRecordUpdateRequest struct {
	Id            int64    `json:"id"`
	UserId        *string  `json:"user_id"`
	CustomData    *string  `json:"custom_data"`
	UnlockNum     *int     `json:"unlock_num"`
	NickName      *string  `json:"nick_name"`
	Avatar        *string  `json:"avatar"`
	Phone         *string  `json:"phone"`
	Supervisor    *int     `json:"supervisor"`
	UserMoney     *float64 `json:"user_money"`
	WithdrawMoney *float64 `json:"withdraw_money"`
	WxwebOpenid   *string  `json:"wxweb_openid"`
	CreatedAt     *int64   `json:"created_at"`
	UpdatedAt     *int64   `json:"updated_at"`
}
type UserRecordListRequest struct {
	Id            int64    `json:"id"`
	UserId        *string  `json:"user_id"`
	CustomData    *string  `json:"custom_data"`
	UnlockNum     *int     `json:"unlock_num"`
	Supervisor    *int     `json:"supervisor"`
	NickName      *string  `json:"nick_name"`
	Phone         *string  `json:"phone"`
	UserMoney     *float64 `json:"user_money"`
	WithdrawMoney *float64 `json:"withdraw_money"`
	CreatedAt     *int64   `json:"created_at"`
	UpdatedAt     *int64   `json:"updated_at"`
	Index         int      `json:"index"`
	Size          int      `json:"size"`
}
type UserRecordListResponse struct {
	Total int               `json:"total"`
	List  []*UserRecordInfo `json:"list"`
}
type UserRecordInfoRequest struct {
	Id     int64  `json:"id"`
	UserId string `json:"user_id"`
}
type UserRecordInfo struct {
	Id            int64   `json:"id"`
	UserId        string  `json:"user_id"`
	CustomData    string  `json:"custom_data"`
	UnlockNum     int     `json:"unlock_num"`
	Supervisor    int     `json:"supervisor"`
	NickName      string  `json:"nick_name"`
	Avatar        string  `json:"avatar"`
	Phone         string  `json:"phone"`
	UserMoney     float64 `json:"user_money"`
	WithdrawMoney float64 `json:"withdraw_money"`
	WxwebOpenid   string  `json:"wxweb_openid"`
	CreatedAt     int64   `json:"created_at"`
	UpdatedAt     int64   `json:"updated_at"`
}
type UserRecordDeleteRequest struct {
	Id int64 `json:"id"`
}
